package com.java.shop.order.feign;

import com.java.common.utils.R;
import com.java.shop.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("shop-member")
public interface MemberFeignService {
    @GetMapping("/member/memberreceiveaddress/getAddressList/{memberId}")
    List<MemberAddressVo> getAddressListByMemberId(@PathVariable("memberId") Long memberId);

    @RequestMapping("/member/memberreceiveaddress/info/{id}")
    R info(@PathVariable("id") Long id);
}
